﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using Maticsoft.DBUtility;

namespace NS.BLL
{
    public partial class Shops
    {
        /// <summary>
        /// 验证餐厅帐号密码
        /// </summary>
        /// <param name="account"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        public int VertifyShop(string account, string password)
        {
            int rowsAffected;
            SqlParameter[] parameters ={
                             new SqlParameter("@Account", SqlDbType.NVarChar), 
                             new SqlParameter("@Password",SqlDbType.NVarChar)
                                      };
            parameters[0].Value = account;
            parameters[1].Value = password;
            return DbHelperSQL.RunProcedure("VertifyShop", parameters, out rowsAffected);
        }
    }
}
